package dac.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {
    public static Connection getConnection ()
    throws ClassNotFoundException, SQLException {
            //String connectionURL = "jdbc:mysql://localhost/dac";
            String connectionURL = "jdbc:mysql://mysql.testeplanos.com.br/testeplanos04";
            Connection connection = null; 
            Class.forName("com.mysql.jdbc.Driver"); 
            connection = DriverManager.getConnection(connectionURL, "testeplanos04", "planos30");
            return connection;
    }
}
